function http(url){
  return new Promise((resolve,reject)=>{
      wx.request({
          url,
          method:"GET",
          dataType:"json",
          responseType:"text",
          success:(res)=>{
            resolve(res)
          },
          error:(err)=>{
            reject(err)
          }
        })
  })
} 
function getCity(){
  return http(`http://47.108.197.28:8000/city`)
}

module.exports = {
  getCity
}